FUNCTION

You specify a pointer to hook structure. The function will be called whenever a commodities message arrives (between MUI's GetMsg() and ReplyMsg()).

You receive a pointer to the application object as object in a2 and a pointer to commodities CxMsg message in a1.